<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>计算机基础知识</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
        }
        
        .hero-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        
        .card-hover {
            transition: all 0.3s ease;
        }
        
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        }
        
        .section-title {
            position: relative;
            display: inline-block;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 60px;
            height: 4px;
            background: linear-gradient(90deg, #667eea, #764ba2);
            border-radius: 2px;
        }
        
        .code-block {
            background: #1e1e1e;
            color: #d4d4d4;
            border-radius: 8px;
            padding: 1.5rem;
            overflow-x: auto;
            font-family: 'Consolas', 'Monaco', monospace;
        }
        
        .drop-cap {
            float: left;
            font-size: 4rem;
            line-height: 1;
            font-weight: 700;
            margin-right: 0.5rem;
            color: #667eea;
            font-family: 'Noto Serif SC', serif;
        }
        
        .icon-box {
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            font-size: 24px;
            margin-bottom: 1rem;
        }
        
        .timeline-item {
            position: relative;
            padding-left: 40px;
            margin-bottom: 2rem;
        }
        
        .timeline-item::before {
            content: '';
            position: absolute;
            left: 10px;
            top: 0;
            bottom: -2rem;
            width: 2px;
            background: #e5e7eb;
        }
        
        .timeline-item:last-child::before {
            display: none;
        }
        
        .timeline-dot {
            position: absolute;
            left: 0;
            top: 5px;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #667eea;
            border: 4px solid white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .mermaid {
            display: flex;
            justify-content: center;
            margin: 2rem 0;
        }
    </style>
</head>
<body>
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20">
        <div class="container mx-auto px-6">
            <div class="max-w-4xl mx-auto text-center">
                <h1 class="text-5xl md:text-6xl font-bold mb-6">
                    <i class="fas fa-laptop-code mr-4"></i>计算机基础知识
                </h1>
                <p class="text-xl md:text-2xl opacity-90 leading-relaxed">
                    探索数字世界的基石，开启科技之旅
                </p>
            </div>
        </div>
    </section>

    <!-- Main Content -->
    <main class="container mx-auto px-6 py-12">
        <!-- 什么是计算机 -->
        <section class="mb-16">
            <div class="bg-white rounded-2xl shadow-xl p-8 md:p-12">
                <h2 class="section-title text-3xl font-bold mb-8 text-gray-800">
                    <i class="fas fa-desktop mr-3 text-purple-600"></i>什么是计算机？
                </h2>
                <p class="text-lg text-gray-700 leading-relaxed mb-8">
                    <span class="drop-cap">计</span>算机是一种能够进行数据处理和执行各种任务的智能设备。它可以接收、存储、处理和输出信息，被广泛用于不同领域，如科学、工程、商业、医疗和娱乐。
                </p>
                <div class="grid md:grid-cols-4 gap-6 mt-8">
                    <div class="text-center card-hover bg-gradient-to-br from-purple-50 to-pink-50 p-6 rounded-xl">
                        <div class="icon-box mx-auto">
                            <i class="fas fa-microchip"></i>
                        </div>
                        <h4 class="font-semibold text-gray-800">数据处理</h4>
                    </div>
                    <div class="text-center card-hover bg-gradient-to-br from-blue-50 to-cyan-50 p-6 rounded-xl">
                        <div class="icon-box mx-auto" style="background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);">
                            <i class="fas fa-database"></i>
                        </div>
                        <h4 class="font-semibold text-gray-800">信息存储</h4>
                    </div>
                    <div class="text-center card-hover bg-gradient-to-br from-green-50 to-emerald-50 p-6 rounded-xl">
                        <div class="icon-box mx-auto" style="background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);">
                            <i class="fas fa-cogs"></i>
                        </div>
                        <h4 class="font-semibold text-gray-800">任务执行</h4>
                    </div>
                    <div class="text-center card-hover bg-gradient-to-br from-orange-50 to-red-50 p-6 rounded-xl">
                        <div class="icon-box mx-auto" style="background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);">
                            <i class="fas fa-share-alt"></i>
                        </div>
                        <h4 class="font-semibold text-gray-800">信息输出</h4>
                    </div>
                </div>
            </div>
        </section>

        <!-- 计算机的历史 -->
        <section class="mb-16">
            <div class="bg-white rounded-2xl shadow-xl p-8 md:p-12">
                <h2 class="section-title text-3xl font-bold mb-8 text-gray-800">
                    <i class="fas fa-history mr-3 text-purple-600"></i>计算机的历史
                </h2>
                <p class="text-lg text-gray-700 leading-relaxed mb-8">
                    计算机的发展历程可以追溯到20世纪初。从最早的机械计算设备到现代的超级计算机，计算机已经取得了巨大的进步。它的发展使得信息处理更加高效和便捷。
                </p>
                <div class="timeline-container">
                    <div class="timeline-item">
                        <div class="timeline-dot"></div>
                        <h4 class="font-bold text-xl mb-2">1940年代</h4>
                        <p class="text-gray-600">第一代电子计算机诞生，使用真空管技术</p>
                    </div>
                    <div class="timeline-item">
                        <div class="timeline-dot"></div>
                        <h4 class="font-bold text-xl mb-2">1960年代</h4>
                        <p class="text-gray-600">晶体管计算机出现，体积更小，性能更强</p>
                    </div>
                    <div class="timeline-item">
                        <div class="timeline-dot"></div>
                        <h4 class="font-bold text-xl mb-2">1970年代</h4>
                        <p class="text-gray-600">微处理器诞生，个人计算机开始普及</p>
                    </div>
                    <div class="timeline-item">
                        <div class="timeline-dot"></div>
                        <h4 class="font-bold text-xl mb-2">21世纪</h4>
                        <p class="text-gray-600">云计算、人工智能、量子计算等新技术蓬勃发展</p>
                    </div>
                </div>
            </div>
        </section>

        <!-- 计算机的组成 -->
        <section class="mb-16">
            <div class="bg-white rounded-2xl shadow-xl p-8 md:p-12">
                <h2 class="section-title text-3xl font-bold mb-8 text-gray-800">
                    <i class="fas fa-puzzle-piece mr-3 text-purple-600"></i>计算机的组成
                </h2>
                
                <!-- 硬件组成 -->
                <div class="mb-12">
                    <h3 class="text-2xl font-semibold mb-6 text-gray-800">
                        <i class="fas fa-microchip mr-2 text-blue-600"></i>硬件组成
                    </h3>
                    <div class="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
                        <div class="card-hover bg-gradient-to-br from-blue-50 to-indigo-50 p-6 rounded-xl">
                            <h4 class="font-bold text-lg mb-2 flex items-center">
                                <i class="fas fa-brain mr-2 text-blue-600"></i>中央处理器（CPU）
                            </h4>
                            <p class="text-gray-600">是计算机的大脑，负责执行指令和数据处理。</p>
                        </div>
                        <div class="card-hover bg-gradient-to-br from-green-50 to-teal-50 p-6 rounded-xl">
                            <h4 class="font-bold text-lg mb-2 flex items-center">
                                <i class="fas fa-memory mr-2 text-green-600"></i>内存（RAM）
                            </h4>
                            <p class="text-gray-600">用于临时存储数据，对计算速度至关重要。</p>
                        </div>
                        <div class="card-hover bg-gradient-to-br from-purple-50 to-pink-50 p-6 rounded-xl">
                            <h4 class="font-bold text-lg mb-2 flex items-center">
                                <i class="fas fa-hdd mr-2 text-purple-600"></i>硬盘
                            </h4>
                            <p class="text-gray-600">用于永久存储数据，如操作系统、应用程序和文件。</p>
                        </div>
                        <div class="card-hover bg-gradient-to-br from-yellow-50 to-orange-50 p-6 rounded-xl">
                            <h4 class="font-bold text-lg mb-2 flex items-center">
                                <i class="fas fa-keyboard mr-2 text-yellow-600"></i>输入设备
                            </h4>
                            <p class="text-gray-600">例如键盘、鼠标和触摸屏，用于输入信息。</p>
                        </div>
                        <div class="card-hover bg-gradient-to-br from-red-50 to-pink-50 p-6 rounded-xl">
                            <h4 class="font-bold text-lg mb-2 flex items-center">
                                <i class="fas fa-tv mr-2 text-red-600"></i>输出设备
                            </h4>
                            <p class="text-gray-600">例如显示器、打印机和音响，用于输出信息。</p>
                        </div>
                        <div class="card-hover bg-gradient-to-br from-cyan-50 to-blue-50 p-6 rounded-xl">
                            <h4 class="font-bold text-lg mb-2 flex items-center">
                                <i class="fas fa-server mr-2 text-cyan-600"></i>主板
                            </h4>
                            <p class="text-gray-600">连接各种硬件组件的电路板。</p>
                        </div>
                    </div>
                </div>

                <!-- 软件组成 -->
                <div>
                    <h3 class="text-2xl font-semibold mb-6 text-gray-800">
                        <i class="fas fa-code mr-2 text-green-600"></i>软件组成
                    </h3>
                    <div class="grid md:grid-cols-3 gap-6">
                        <div class="card-hover bg-gradient-to-br from-indigo-50 to-purple-50 p-6 rounded-xl">
                            <h4 class="font-bold text-lg mb-2 flex items-center">
                                <i class="fas fa-cog mr-2 text-indigo-600"></i>操作系统
                            </h4>
                            <p class="text-gray-600">控制计算机硬件并管理应用程序的软件。</p>
                        </div>
                        <div class="card-hover bg-gradient-to-br from-teal-50 to-green-50 p-6 rounded-xl">
                            <h4 